Skip to content

fix: throw correct test error in case of invalid timeout#3179

Open
proksh wants to merge 3 commits intomainfrom
fix/invalid-timeout
Open

fix: throw correct test error in case of invalid timeout#3179
proksh wants to merge 3 commits intomainfrom
fix/invalid-timeout

Conversation

@proksh
Copy link
Copy Markdown
Contributor

@proksh proksh commented Apr 14, 2026

Proposed changes

  • Extract shared parseTimeoutMs() helper that validates timeout strings and throws MaestroException.InvalidCommand instead of a raw NumberFormatException
  • Apply to both AssertConditionCommand.timeoutMs() and ScrollUntilVisibleCommand.timeoutToMillis()
  • Add test covering null, valid (with underscores), and invalid timeout parsing

@proksh proksh requested a review from amanjeetsingh150 April 14, 2026 21:15
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant